﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_yt_photo")]
    public class ZmYtPhoto: Repository.IEntity
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        [Column("id")]
        public string Id { get; set; }

        /// <summary>
        /// 0房屋1阳台
        /// </summary>
        [Column("type")]
        [StringLength(255)]
        public short? Type { get; set; }

        /// <summary>
        /// 0房屋1阳台
        /// </summary>
        [Column("room_no")]
        public string? RoomNo { get; set; }

        /// <summary>
        /// 幢编码（这个是唯一的）
        /// </summary>
        [Column("build_no")]
        [StringLength(255)]
        public string BuildNo { get; set; }

        /// <summary>
        ///照片
        /// </summary>
        [Column("photo", TypeName = "json")]
        [StringLength(255)]
        public string Photo { get; set; }


        [Column("create_by")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
     
    }
}
